package msg

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/common/utils"
	basePb "git.mycaigou.com/gfyx/micro-gfyx-oppty-service/proto/micro_gfyx_oppty_service_proto/micro-gfyx-oppty-service/base"
)

type MsgRepositoryIface interface {
	// List 消息列表
	List(ctx context.Context, req *basePb.MsgListRequest) ([]*GfyxMessageInboxPo, *utils.PageInfo, error)
	SetReaded(ctx context.Context, req *basePb.MsgSetReadedRequest) (int64, error)
	GetReadStatusGroupSummary(ctx context.Context, isReaded int64) (int64, error)
	//PushSiteMsg 推送站内信
	PushSiteMsg(ctx context.Context, data *GfyxMessageInboxPo) error
	//BatchPushSiteMsg 批量推送站内信
	BatchPushSiteMsg(ctx context.Context, messageList []*GfyxMessageInboxPo) error
}
